package com.youkeyi.ddy.cloud.common.api.application.business.storage.category;

import com.youkeyi.ddy.cloud.common.api.application.business.storage.category.dto.BusinessCategoryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.category.param.BusinessCategoryCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.category.param.BusinessCategoryDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.category.param.BusinessCategoryListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.category.param.BusinessCategoryUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessCategoryCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/goods/category/fallback")
public class BusinessCategoryCloudServiceFallback implements BusinessCategoryCloudService {

    @Override
    public BusinessCategoryListCloudDto list(BusinessCategoryListCloudParam param) {
        return new BusinessCategoryListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessCategoryCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessCategoryUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessCategoryDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
